load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "testkit",
    srcs = [
        "asynctestkit.go",
        "dbtestkit.go",
        "mocksessionmanager.go",
        "mockstore.go",
        "result.go",
        "stepped.go",
        "testkit.go",
    ],
    importpath = "github.com/pingcap/tidb/testkit",
    visibility = ["//visibility:public"],
    deps = [
        "//ddl/schematracker",
        "//domain",
        "//expression",
        "//kv",
        "//parser/ast",
        "//parser/terror",
        "//planner/core",
        "//resourcemanager",
        "//session",
        "//session/txninfo",
        "//sessionctx/variable",
        "//store/driver",
        "//store/mockstore",
        "//util",
        "//util/breakpoint",
        "//util/chunk",
        "//util/gctuner",
        "//util/intest",
        "//util/mathutil",
        "//util/sqlexec",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//tikv",
        "@com_github_tikv_client_go_v2//tikvrpc",
        "@io_opencensus_go//stats/view",
        "@org_golang_x_exp//slices",
        "@org_uber_go_atomic//:atomic",
    ],
)
